package com.linsir.gen.entity;

import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlElementWrapper;
import jakarta.xml.bind.annotation.XmlRootElement;
import lombok.Data;


import java.io.Serializable;
import java.util.List;

/**
 * @author ：linsir
 * @date ：Created in 2022/10/4 11:38
 * @description：
 * @modified By：
 * @version:
 */

@XmlRootElement(name="config")
public class SysGenConfig implements Serializable {

    private List<SysGenCategory> categoryList;

    private List<SysGenDict> javaTypeList;

    private List<SysGenDict> queryTypeList;

    private List<SysGenDict> showTypeList;

    @XmlElementWrapper(name="category")
    @XmlElement(name="category")
    public List<SysGenCategory> getCategoryList() {
        return categoryList;
    }

    public void setCategoryList(List<SysGenCategory> categoryList) {
        this.categoryList = categoryList;
    }

    @XmlElementWrapper(name="javaType")
    @XmlElement(name="dict")
    public List<SysGenDict> getJavaTypeList() {
        return javaTypeList;
    }

    public void setJavaTypeList(List<SysGenDict> javaTypeList) {
        this.javaTypeList = javaTypeList;
    }

    @XmlElementWrapper(name="queryType")
    @XmlElement(name="dict")
    public List<SysGenDict> getQueryTypeList() {
        return queryTypeList;
    }

    public void setQueryTypeList(List<SysGenDict> queryTypeList) {
        this.queryTypeList = queryTypeList;
    }

    @XmlElementWrapper(name="showType")
    @XmlElement(name="dict")
    public List<SysGenDict> getShowTypeList() {
        return showTypeList;
    }

    public void setShowTypeList(List<SysGenDict> showTypeList) {
        this.showTypeList = showTypeList;
    }
}
